package com.lysj.admin.master.bussiness.company.invoice.dto;

import com.lysj.admin.master.common.validation.annotation.Min;
import com.lysj.admin.master.common.validation.annotation.NotBlank;
import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;

/**
 * @author Created by drj on 2020-01-09 11:11
 * @description 提交开票子项
 */
@Data
public class InvoiceApplyItemSubmitDto {

    @NotBlank(message = "参数错误")
    private String invoiceApplyId; //发票申请id
    @NotBlank(message = "请选择收件人")
    private String invoiceRecipientId;//收件人id
    @Column(columnDefinition = "decimal(10,2)")
    @Min(value = "0", message = "开票金额必须大于0")
    private BigDecimal invoicePrice;//开票金额
    @NotBlank(message = "请填写应税劳务")
    private String goodsName;//货物名称(应税劳务) 用-拼接,比如(货物1-货物2)
}
